package com.xomily.devops.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xomily.common.annotation.Excel;
import com.xomily.common.core.domain.BaseEntity;

/**
 * 进程信息对象 dev_program
 * 
 * @author xomily
 * @date 2021-11-29
 */
public class DevProgram extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 主机ip地址 */
    @Excel(name = "主机ip地址")
    private String ip;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 进程PID */
    @Excel(name = "进程PID")
    private String pid;

    /** CPU使用率 */
    @Excel(name = "CPU使用率")
    private BigDecimal cpuRate;

    /** 内存使用率 */
    @Excel(name = "内存使用率")
    private BigDecimal memRate;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 状态:0下线1在线2告警 */
    @Excel(name = "状态:0下线1在线2告警")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPid(String pid) 
    {
        this.pid = pid;
    }

    public String getPid() 
    {
        return pid;
    }
    public void setCpuRate(BigDecimal cpuRate) 
    {
        this.cpuRate = cpuRate;
    }

    public BigDecimal getCpuRate() 
    {
        return cpuRate;
    }
    public void setMemRate(BigDecimal memRate) 
    {
        this.memRate = memRate;
    }

    public BigDecimal getMemRate() 
    {
        return memRate;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("name", getName())
            .append("pid", getPid())
            .append("cpuRate", getCpuRate())
            .append("memRate", getMemRate())
            .append("type", getType())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
